class Solution(object):
    def findMin(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        if len(nums) == 0:
            return -1
        min = nums[0]
        for x in nums:
            if min > x :
                min = x
        return min
        